Chris Pollett > CS185C
( Print View )

Student Corner:
  [Grades Sec1]
 
  [Submit Sec1]
 
  [
Lecture Notes]

Course Info:
  [Texts & Links]
  [Topics]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]

Practice Exams:
  [Mid1]  [Mid2]  [Final]

                           












CS185C Spring 2004Practice Midterm 2

To study for the midterm I would suggest you: (1) Know how to do (by heart) all the practice problems. (2) Go over your notes three times. Second and third time try to see how huch you can remember from the first time. (3) Go over the homework problems. (4) Try to create your own problems similar to the ones I have given and solve them. (5) Skim the relevant sections from the book. (6) If you want to study in groups, at this point you are ready to quiz each other. The practice midterm is below. Here are some facts about the actual midterm: (a) The midterm will be in class . (b) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (c) You should bring photo ID. (d) There will be more than one version of the test. Each version will be of comparable difficulty. (e) If your cell-phone or beeper goes off you will be excused from the test at that point and graded on what you have done till your excusal. (f) One problem (less typos) on the actual test will be from the practice test.

Student created solutions.

1. What is feature memory? Explain how to determine the ROM version
information from the Palm device.

2. Explain how to check if someone has entered the graffiti character "h"
in your applcation event loop. 

3. Give the code needed to initialize a three by four table whose first
column contain checkboxes, whose second column contains labels and whose
last column contains text fields.

4. Give the code for creating a database with name "Bobs stuff" under the
creator id 'bobs' and of type DATA.

5. Explain how to set and get an application preferences struct for an
applcation.

6. Explain how to allocate and set an application info block for a Palm
database.

7. Give the prototype for the user-defined callback function used to
maintain sort order of a Palm database.

8. Give an example of how to register the application with creator ID
'text' as the handler for the MIME type text/plain.

9. Give the Palm URL prefix needed to send a record via Bluetooth to the
devices with MAC address FF:EE:DD:CC:BB:AA and 99:88:77:66:55:44

10. Give the Palm native interface code needed to determine the IP address
that corresponds to the hostname: "bob.the.builder".